<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php $this->load->view('head'); ?>
</head>

<body>
	<?php if ($user->level > 0): ?>
	<?php $this->load->view('header_admin.php'); ?>
	<?php else: ?>
	<?php $this->load->view('header_logged.php'); ?>
	<?php endif; ?>
	
	<!-- Content Area -->
	<div class="wrapper-world content">
		<div class="wrapper">
			<h1>Contacts</h1>
			
			<div class="right-half">
				<div class="info-box">
					<div class="info-text">
						<p><strong>Address:</strong><br />
						<strong>Bookabus Pte Ltd</strong> <br  />
						20 Bukit Batok Crescent<br  />
						#09-07 Enterprise Centre<br  />
						Singapore 658080<br  /></p>		
								
						<strong>Phone:</strong> +65 6600 1178<br  />
						<strong>Fax:</strong> +65 6569 6166<br  />
						<strong>e-mail:</strong> <a href="mailto:book@bookabus.sg">book@bookabus.sg</a><br  />
						<strong>Sales operating Hours:</strong> 9am &mdash; 6pm Weekdays
					</div>
				</div>
			</div>
			
			<div class="left-half">
				<?php echo form_open('contacts/send', array('class' => 'standard-form')); ?>
					<div class="one">
						<label>Your name:</label>
						<div class="type-text"><input type="text" name="name" value="<?php echo $user->name; ?>" /></div>
						<div class="clr"></div>
					</div>
					<div class="one">
						<label>e-mail:</label>
						<div class="type-text"><input type="text" name="mail" value="<?php echo $user->username; ?>" /></div>
						<div class="clr"></div>
					</div>
					<div class="one">
						<label>Subject:</label>
						<div class="type-text"><input type="text" name="subject" /></div>
						<div class="clr"></div>
					</div>
					<div class="one">
						<label>Message:</label>
						<div class="type-textarea"><textarea name="msg"></textarea></div>
						<div class="clr"></div>
					</div>
					<div class="one no-left">
						<div class="type-btn"><input type="submit" value="Submit" /></div>
						<div class="clr"></div>
					</div>
				</form>
			</div>
			
			<div class="clr"></div>
		</div>
	</div> <!-- end of wrapper-world and .content -->
	
	
	<div class="wrapper-world footer-top">
		<div class="wrapper"></div>	
	</div>
	
	<?php $this->load->view('footer'); ?>
</body>
</html>
